//
//  ChildViewController.m
//  FSScrollContentViewDemo
//
//  Created by 冯顺 on 2017/5/3.
//  Copyright © 2017年 fengshun. All rights reserved.
//

#import "ChildViewController.h"

@interface ChildViewController ()
@property (nonatomic, strong) UILabel *label;
@end

@implementation ChildViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [ChildViewController randomColor];
    [self.view addSubview:self.label];
    self.label.text = self.urlStr;
}
-(UILabel *)label
{
    if (_label == nil) {
        _label = [[UILabel alloc] initWithFrame:CGRectMake(100, 300, 100, 30)];
        _label.backgroundColor = [UIColor whiteColor];
    }
    return _label;
}
+ (UIColor*) randomColor{
    NSInteger r = arc4random() % 255;
    NSInteger g = arc4random() % 255;
    NSInteger b = arc4random() % 255;
    return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1];
}

@end
